package leetcode_501_600;

public class LeeCode_509 {
    public static void main(String[] args) {

    }
    private static int fib(int n) {
        int n1 = 0, n2 = 1, i = 1;
        if (n == 0)
            return 0;
        while (i < n){
            int sum = n1 + n2;
            n1 = n2;
            n2 = sum;
            i++;
        }
        return n2;
    }
}
